package com.ttx.pattern.example.strategy.after;

import com.ttx.pattern.example.strategy.after.strategies.Add;

/**
 * @author TimFruit
 * @date 2019/5/21 8:05
 */

public class Client {
    public static void main(String[] args) {
        IAlgorithm algorithm=new Add();
        
        Calculator calculator =new Calculator(algorithm);
        
        
        int num1=1;
        int num2=3;
        int result= calculator.exec(num1, num2);
        System.out.println("结果为: "+ result);
    }
}
